/*======================================================================*\
|| #################################################################### ||
|| # Advanced Post Thanks / Like: Post opinions			      # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright 2010 DragonByte Technologies 			      # ||
|| # http://www.dragonbyte-tech.com - http://www.dragonbyte-tech.net  # ||
|| # All Rights Reserved.                                             # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------------------------------------------------------- # ||
|| # http://www.vbulletin.org/forum/showthread.php?t=           # ||
|| #################################################################### ||
\*======================================================================*/

/*======================================================================*\
|| Table of contents                                                    ||
||  1. License                                                          ||
||  2. Requirements                                                     ||
||  3. First Time Installation / Upgrade 	                        ||
||  4. Optional File Edit		 	                        ||
\*======================================================================*/


/*======================================================================*\
|| 1. License                                                           ||
\*======================================================================*/

Advanced Post Thanks / Like is released under the All Rights Reserved licence.
You may not redistribute the package in whole or significant part.
All copyright notices must remain unchanged and visible.
You may provide phrase .xml files for other languages on any site,
but you may not provide the full product .xml file - only the phrases.


/*======================================================================*\
|| 2. Requirements                                                      ||
\*======================================================================*/

Advanced Post Thanks / Like requires at least vBulletin 4.0.2 (vB4 version)
It may not function correctly in vBulletin 4.0.1 (vB4 version) or lower.

Advanced Post Thanks / Like requires at least vBulletin 3.8.x (vB3 version)
It may not function correctly in vBulletin 3.7.x (vB3 version) or lower.


/*======================================================================*\
|| 3. First Time Installation / Upgrade                                 ||
\*======================================================================*/

1. Upload all files from the "upload" folder to your forums directory.

2. CHMOD the following folders to 0777
	/dbtech/thanks/vbactivity_type

3. Import the product-dbtech_thanks.xml file from the "XML" folder at AdminCP ->
Plugins & Products -> Manage Products -> Add/Import Product

4. Configure your Usergroup settings by clicking "Manage Buttons" under 
"DBTech - Post Thanks" in your AdminCP navigation menu, then
editing each button and setting your usergroup permissions from there.

/*======================================================================*\
||  4. Optional File Edit		 	                        ||
\*======================================================================*/

In vBulletin version 4.0.6 and above, Internet Brands changed the way
search results were being shown.
Hidden content may be exposed unless you perform this file edit.

In /vb/legacy/post.php find:
----------
		// Deal with the case that quote was the only content of the post
		if (trim($page_text) == '')
		{
			$page_text = $this->get_field('pagetext');
			$strip_quotes = false;
		}
----------


Add Below:
----------
		// DBTECH THANKS - STRIP HIDE
		global $vbphrase;
		THANKS::parse_bbcode($page_text, $vbphrase['dbtech_thanks_stripped_content']);
		// DBTECH THANKS - STRIP HIDE
----------